package com.whd.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.whd.demo.entity.House;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HouseMapper extends BaseMapper<House> {
    List<House> findByHouseId(@Param("id") Integer id);

    List<House> findHouseName();

    Page<House> findPage(Page<House> page);

    Page<House> findRent(Page<House> page,@Param("id") Integer id,@Param("address") String address);

    Page<House> findNotRent(Page<House> page,@Param("id") Integer id,@Param("address") String address);

}
